const luckServices = require('../services/luckServices');

exports.getAllLucks = async (req, res) => {
    try {
        const lucks = await luckServices.findAllLucks(req);
        res.status(200).send(lucks);
    } catch (error) {
        console.log("Error: " + error);
        res.status(500).send(error);
    }
}

exports.getAllClassify = async (req, res) => {
    try {
        const luckClassify = await luckServices.findAllClassify(req);
        res.status(200).send(luckClassify);
    } catch (error) {
        console.log("Error: " + error);
        res.status(500).send(error);
    }
}